#ifndef CLOCK_H
#define CLOCK_H

#include "free-cube/freecube.h"
#include "free-cube/logger.h"
#include "free-cube/aiclock.h"
class Clock : public fc::AIClock
{
public:
  Clock();
  inline void set(fc::TimeT time) { time_ = time; }
  inline fc::TimeT time() const { return time_; }
  inline void process(size_t samples) {
    time_ += samples;
  }
private:
  fc::TimeT time_;
};
#endif // CLOCK_H
